package service

import (
	"znet/zrpc"
	"znet/glog"
)

type ServiceImpl struct {
}
func (this *ServiceImpl)OnRpcMessage(args *zrpc.RpcArgsRes) *zrpc.RpcArgsRes  {
	res := args.NewRpcArgsRes()
	s := args.Data2String()
	glog.Info(s)
	if args.Cmd == 1{
		res.EncodeData(10)
		return res
	}
	return args
}
